<?php

class frontendConfiguration extends sfApplicationConfiguration
{

    public function configure()
    {
        set_error_handler(array($this, 'errorHandler'));
    }

    public function errorHandler($errno, $errstr, $errfile, $errline, $errcontext)
    {
        throw new ErrorException($errstr, 0, $errno, $errfile, $errline, $errcontext);
    }
}
